#region Copyright
// Copyright (c) 2010, Kazi Manzur Rashid <kazimanzurrashid@gmail.com>.
// This source is subject to the Microsoft Public License. 
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL. 
// All other rights reserved.
#endregion

namespace LiveWriter.Plugins
{
    using WindowsLive.Writer.Api;

    internal static class PropertiesExtensions
    {
        public static string Language(this IProperties instance)
        {
            return instance.GetString("lang", null);
        }

        public static void Language(this IProperties instance, string value)
        {
            instance.SetString("lang", value);
        }

        public static string Code(this IProperties instance)
        {
            return instance.GetString("code", null);
        }

        public static void Code(this IProperties instance, string value)
        {
            instance.SetString("code", value);
        }

        public static string Caption(this IProperties instance)
        {
            return instance.GetString("caption", null);
        }

        public static void Caption(this IProperties instance, string value)
        {
            instance.SetString("caption", value);
        }
    }
}